﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="seminar.aspx.cs" Inherits="Admin_seminar" Title="Seminars Management" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
                    <Scripts>
                        <asp:ScriptReference Path="RadDatePicker" ResourceUICultures="RadDatePicker" />
                    </Scripts>
                </asp:ScriptManager>
    <center>            
        <asp:Button ID="cmdSearchEnable" runat="server" onclick="cmdSearchEnable_Click" 
            Text="Enable Search Area" Height="30px" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button 
            ID="cmdAddEnable" runat="server" Text="Enable Add Area" 
            onclick="cmdAddEnable_Click" Height="30px" />
    </center>
    <asp:Panel ID="Panel1" CssClass="panel" runat="server">
        <div class="row">
            <div class="left">ID:</div>
            <div class="right"><asp:TextBox ID="txtId" runat="server" Width="50px" ></asp:TextBox></div>
        </div>
        <div class="clear"></div>
        <div class="row">
            <div class="left">Title:</div>
            <div class="right"><asp:TextBox ID="txtTitle" runat="server" Width="350px"></asp:TextBox>
                <asp:Label ID="lblTitleError" runat="server" ForeColor="Red" Text="Not null" 
                    Visible="False"></asp:Label>
            </div>
        </div>
        <div class="clear"></div>
        <asp:Panel ID="PanelInvi1" runat="server">
        <div class="row">
            <div class="left">Description:</div>
            <div class="right"><asp:TextBox ID="txtDes" runat="server" Width="350px" 
                    Height="80px" TextMode="MultiLine"></asp:TextBox>
                    <asp:Label ID="lblDesError" runat="server" ForeColor="Red" Text="Not null" 
                    Visible="False"></asp:Label></div>
        </div>
        </asp:Panel>
        <div class="clear"></div>
        <asp:Panel ID="PanelInvi2" runat="server">
        <div class="row">
            <div class="left">Content:</div>
            <div class="right"><CKEditor:CKEditorControl ID="CKEditor1" runat="server" 
                    Width="770px"></CKEditor:CKEditorControl>
            </div>
        </div>
        </asp:Panel>
        <div class="clear"></div>
        <asp:Panel ID="PanelInvi3" runat="server">
        <div class="row">
            <div class="left">Choose image:</div>
            <div class="right">
                <asp:FileUpload ID="FileUpload1" runat="server" />
                &nbsp;&nbsp;
                <asp:Button ID="cmdUploadImg" runat="server" Text="Upload Image" 
                    onclick="cmdUploadImg_Click" />&nbsp;
                <asp:TextBox ID="txtImage" runat="server" Enabled="false" 
                    BackColor="WhiteSmoke" Width="250px"></asp:TextBox>
                    <asp:Label ID="lblImgError" runat="server" ForeColor="Red" Text="Not null" 
                    Visible="False"></asp:Label>
             </div>
        </div>
        <div class="clear"></div>
        </asp:Panel>
        <div class="row">
            <div class="left">Start Date:</div>
            <div class="right">
            <telerik:RadDatePicker ID="RadDatePicker1" runat="server" DateInput-DateFormat="dd/MM/yyyy">
            </telerik:RadDatePicker>
            <asp:Label ID="lblsDateError" runat="server" ForeColor="Red" Text="Not null" 
                    Visible="False"></asp:Label>
                    
            </div>
        </div>
        <div class="clear"></div>
        <div class="row">
            <div class="left">End Date:</div>
            <div class="right">
            <telerik:RadDatePicker ID="RadDatePicker2" runat="server" DateInput-DateFormat="dd/MM/yyyy">
            </telerik:RadDatePicker>
            <asp:Label ID="lbleDateError" runat="server" ForeColor="Red" Text="Not null" 
                    Visible="False"></asp:Label>
                    
            </div>
        </div>
        <div class="clear"></div>
        <div class="row">
            <div class="left">Conducted by:</div>
            <div class="right"><asp:TextBox ID="txtConduct" runat="server" Width="350px"></asp:TextBox>
            <asp:Label ID="lblConductError" runat="server" ForeColor="Red" Text="Not null" 
                    Visible="False"></asp:Label></div>
        </div>
        <div class="clear"></div>
        <div class="row">
            <div class="left"></div>
            <div class="right">
                <asp:Button ID="cmdSearch" runat="server" Text="Search" 
                    onclick="cmdSearch_Click" />
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="cmdHide" runat="server" Text="Hide" onclick="cmdHide_Click" />
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="cmdClear" runat="server" Text="Clear" 
                    onclick="cmdClear_Click" />
            </div>
        </div>
        <div class="clear"></div>
</asp:Panel>
    <div style="text-align:center;margin:10px;font-weight:bold;font-size:14px;color:#ffa800;">
        <asp:Label ID="lblResult" runat="server"></asp:Label>
    </div> 
<asp:Panel ID="Panel2" runat="server">

    <asp:DataList ID="DataList1" runat="server" RepeatColumns="2" Width="990px" 
        RepeatDirection="Horizontal">
    <ItemTemplate>
        <div class="sem-item">
            <div class="sem-left">
                <div class="item" >
                    <asp:Image ID="imgSem" runat="server" Height="106px" Width="166px" ImageUrl='<%# "../"+Eval("image") %>'/>
                </div>
                <div class="item" >
                    <asp:LinkButton ID="lblEdit" runat="server" ForeColor="#ffa800" 
                        CommandArgument='<%# Eval("id") %>' oncommand="lblEdit_Command">Edit</asp:LinkButton>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:LinkButton ID="lblDelete" runat="server" ForeColor="#ffa800" 
                        CommandArgument='<%# Eval("id") %>' oncommand="lblDelete_Command" 
                        onclientclick="return confirm(&quot;Are you sure?&quot;);">Delete</asp:LinkButton>
                </div>
            </div><!--End .sem-left-->
            <div class="sem-right">
                <div class="item"><strong>Id: </strong><asp:Label ID="lblId" runat="server" Text='<%# Eval("id") %>'></asp:Label>
                </div>
                <div class="item"><strong>Title: </strong><asp:Label ID="lblTitle" runat="server" ForeColor="#229100" Text='<%# Eval("title") %>'></asp:Label>
                </div>
                <div class="item"><strong>Date: </strong><asp:Label ID="lblstartDate" 
                        runat="server" ForeColor="#FFA800" Text='<%# Eval("sDate") %>'></asp:Label> 
                    - <asp:Label ID="lblendDate" runat="server" ForeColor="#FFA800" 
                        Text='<%# Eval("eDate") %>'></asp:Label>
                </div>
                <div class="item"><strong>Conducted by: </strong><asp:Label ID="lblConductedBy" runat="server" ForeColor="#85b2de" Text='<%# Eval("conducted_by") %>'></asp:Label>
                </div>
            </div><!--End .sem-right-->
            <div class="clear"></div> 
        </div><!--End .sem-item-->
    </ItemTemplate>
    </asp:DataList>
    </asp:Panel>

</asp:Content>

